package com.karaoke.android.data.service

import com.karaoke.android.data.domain.PageInfo
import com.karaoke.android.data.domain.QSinger
import com.karaoke.android.data.domain.Singer
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import rx.Observable

/**
 * Created by allen on 2017/4/19.
 */

interface SingerService
{
    @POST("/api/v1/singer/singers")
    fun getSingers(@Body params: QSinger): Observable<PageInfo<Singer>>

    @GET("/api/v1/singer/{id}")
    fun getSinger(@Path("id") id: Int): Observable<Singer>
}
